package com.dodo.blog.ui.component.composite;

import com.dodo.blog.ui.component.container.Container;
import com.dodo.blog.ui.component.container.Panel;

/**
 * @author <a href="mailto:pohorelec@comvai.com">Jozef Pohorelec</a>
 */
public class FieldSet
        extends Container
{
    private static final long serialVersionUID = 1L;

    public FieldSet()
    {
        this( null );
    }

    public FieldSet( String label )
    {
        super( Tag.FIELDSET );

        if ( label != null )
        {
            Panel legend = new Panel();
            legend.setClassName( "legend" );
            legend.add( label );
            add( legend );
        }
    }

}
